package org.example.demo.service;

import org.example.spring.annotation.Autowired;
import org.example.spring.annotation.Component;
import org.example.spring.annotation.Scope;
import org.example.spring.factory.InitializingBean;

/**
 * @Author: qiu
 * @Date: 2025/11/18/17:18
 */
@Component
@Scope
public class UserService implements InitializingBean {

    @Autowired
    private OrderService orderService;

    public void test() {
        System.out.println("UserService test");
        System.out.println(orderService);
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("UerService initializing...");
    }
}
